//part1:C07:7.27:Screen.h
#ifndef SCREEN_H_
#define SCREEN_H_
#include <iostream>
#include <string>

class Window_mgr
{
public:
  void clear();
};

class Screen
{
public:
  Screen() = default;
  Screen(unsigned ht, unsigned wd, char c)
      :height(ht), width(wd), contents(ht * wd, c){}:
private:
  unsigned height = 0;
  unsigned width  = 0;
  unsigned cursor = 0;
  std::string contents;
};

void Window_mgr::clear()
{
  Screen myScreen(10, 20, 20,);
  std::cout << "before clear : " << std::endl;
  std::cout << myScreen.contents << std::endl;

  myScreen.contents = "";
  std::cout << "after clear:\n";
  std::cout << myScreen.contents << std::endl;
}
#endif // SCREEN_H_
